package com.edu.design.chain;

/**
 * 责任链设计模式
 * @author Administrator
 *
 */
public abstract class AbstractHander {
	
	private AbstractHander handler;//下一个对象的引用，形成链的关键

	public AbstractHander getHandler() {
		return handler;
	}

	public void setHandler(AbstractHander pHandler) {
		handler = pHandler;
	}
	
	abstract void discount(double disocunt);
}
